<?php
use models\User as User;
include '!config.php';

if($_GET['action'] == 'signIn'){
    $user = new User();

    if($user->signIn($_POST['login'], $_POST['password'])){
        $response = 'OK!';
    }
    else $response = 'FALSE!';
    
    echo json_encode($response);
}
?>
